home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
DB_CLIPP
/
2510.ZIP
/
TRSOURCE.EXE
/
_TR_HTOD.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-10-22
|
646b
|
36 lines
/*********
* _TR_HTOD.C
*
* by Ralph Davis
*
* Placed in the public domain by Tom Rettig Associates, 10/22/1990.
*
* Syntax: _tr_htod( <expC> ) <expC> is hexadecimal string
* Return: <expC> as a double precision number
*
* C Syntax:
*
* double _tr_htod(s);
* char *s;
*
* Assembler usage:
*
* MOV AX,SEG <expC>
* MOV BX,OFF <expC>
* PUSH AX
* PUSH BX
* CALL _TR_HTOD
* ADD SP,4
*
* Returns 8-byte floating-point number in AX:BX:CX:DX
*********/
#include "trlib.h"
double _tr_htod(s)
char *s;
{
return ((double) _tr_htol(s));
}